package com.pactera.integral.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.pactera.integral.entity.Department;

public interface DepartmentService {
  
	/**
	 *  添加或修改部门
	 * @param department
	 * @throws Exception
	 */
	void save(Department department) throws Exception;
	
	/**
	 * 删除部门
	 */
	Boolean deleteDepartment(String departmentId);
	
	
	/**
	 * 查看部门明细
	 * @param departmentId
	 * @return Department
	 */
	Department getDepartment(String departmentId);
	
	/**
	 * 部门列表
	 * @param param
	 * @param page
	 * @return Page<Department>
	 */
	Page<Department> pageDepartment(Map<String,Object> param,Pageable page);
	
	/**
	 * 部门下拉列表
	 * @return List<Map<String,String>>
	 */
	List<Map<String,String>> departmentList();

	
}
